package day01;

public class VarInitDemo {
    public static void main(String[] args){
        int i = 10;
        System.out.println(i);

        int a;
        a = 10;
        a = 20;
        System.out.println(a);

        int m,n = 20;
        System.out.println(n);

        int x,y,z;
        x = y = z = 100;
        int t1 = 10;
        int t2 = 20;
        int result = t1 + t2 + 10;
        System.out.println(result);

        int k = add();
        System.out.println(k);
    }

    public static int add(){
        return 200;
    }
}
